Xdialog Buttons

Description

Syntax for creating Button controls in an Xdialog.

Name
Description
Button B Directive

The B directive sets the border style for a button.  When you have multiple directives in a Format string, you separate them with semi-colons ";".

Button Control Methods

The Button Control has the following methods. The button control methods are used with a pointer to the control in the following way: .METHOD(). Refer to Retrieving a Pointer to a Control for techniques for getting a pointer.

Button F Directive

The F directive references the name of a character variable containing an owner draw format string to be applied when the button is loaded. It is used when creating resizable column list boxes.

Button Genie

The Button Genie generates all the Xdialog code for a button. The Button Genie provides:

Button I Directive

The I directive defines an image to place on a button.  When you have multiple directives in a Format string, you separate them with semi-colons ";".

Button O Directive

The O directive allows you to specify the formatting of a button's label. When you have multiple directives in a Format string, you separate them with semi-colons ";".

Button O Directive {@@} Operator

The {@@} operator is used in a Button's owner draw (O) directive to specify that the button text contains embedded formatting commands.

Button O Directive {B} Operator

The {B} operator is used in a button's owner draw (O) directive {@@} operator to specify background colors.

Button O Directive {C} Operator

The {C} operator is used in a button's owner draw (O) directive and its {@@} operator to specify foreground colors.

Button O Directive {F} Operator

The {F} operator is used in a button's owner draw (O) directive and its {@@} operator to specify font and style. If used, the {F} operator must come first after the owner draw directive.

Button O Directive {J} Operator

The {J} operator is used in a button's owner draw (O) directive and its {@@} operator to specify the alignment of the button label.

Button OF Directive

Allows you to specify the formatting of a button's label when the button has focus.

Button Properties

A list of button properties.

Button Setup

The properties involved in button setup.

Button Syntax

One or more Button objects may appear inside the Format section of a UI_DLG_BOX() function.

Button T Directive

The T directive defines bubble help for a button.  When you have multiple directives in a Format string, you separate them with semi-colons ";".

Multi-line Buttons

This example creates a multi-line label for a button. Note that +U and -U start and stop the underline attribute. This syntax also works with the bold (B) and italic (I) attributes. See Owner Draw O Directive Command Summary.

Multi-State Button Control Methods

The Multi-State Button Control has the following methods. The multi-state button control methods are used with a pointer to the control in the following way: .METHOD(). Refer to Retrieving a Pointer to a Control for techniques for getting a pointer.